package day04;

/*
 * Author: JacksonCoder
 * FileName: ControlStreamDemo
 * Version: 1.0.0
 * Date: 2025/4/11
 */

public class ControlStreamDemo {
    public static void main(String[] args) {
        int age = 32;
        if(age > 18){
            System.out.println("成年了！");
        }else{
            System.out.println("未成年！");
        }

        switch(age){
            case 18:
                System.out.println("Just Adult");
                break;
            case 20:
                System.out.println("20 了");
                break;
            case 30:
                System.out.println("30 了");
                break;
//            default:
//                System.out.println("其他");
//                break;
        }

    }

}
